#ifndef DDAS_ASSIMILATION_HANDLER_HPP
#define DDAS_ASSIMILATION_HANDLER_HPP

#include "boinc_db.h"

#include "DDAS_Client_Result_Data.hpp"

#include "ddas_definitions.h"

/// This is a helper class to the DDAS assimilator daemon
class DDAS_Assimilation_Handler
{
	public:

	DDAS_Assimilation_Handler();

	~DDAS_Assimilation_Handler();

	int DDAS_Assimilation_Handler::insertMappingData( int workunit_id, int canonical_result_id, int job_id);

	int DDAS_Assimilation_Handler::insertOutputFile( DDAS_Client_Result_Data* data, const RESULT& canonical_result,  int job_id );

	int DDAS_Assimilation_Handler::insertDataRows( DDAS_Client_Result_Data* data, const RESULT& canonical_result, int job_id );

	int DDAS_Assimilation_Handler::insertCoefficients( DDAS_Client_Result_Data* data, const RESULT& canonical_result, int job_id );

	int DDAS_Assimilation_Handler::queryJobID( WORKUNIT& wu );
};

#endif
